<link rel="stylesheet" type="text/css" href="/public/static/css/index.css" />
<script src="/public/static/js/synchro.js"></script>
<{include file="tpl/filter.tpl"}>

<div>
	<!--<input class="label-success pull-left" type="checkbox" id="all" />&nbsp;<span id="aa">全选</span>
	<a href="javascript:;" id="synchro" name="synchro" class="btn" data-url="?r=global/synchro">同步</a>-->
    <a class="pull-right" style="background: #008678; color: #fff; padding: 2px 8px; margin-bottom: 12px; border-radius: 5px;" href="<{PubFunc::buildUrl('/oss/?r=global/add')}>">
        <i class="fa fa-plus"></i> 添加一条邮件
    </a>
</div>

<{include file="tpl/grid.tpl"}>
	
<script>
$(document).on('click','a[name="xinfo"]',function(){
	var id = $(this).attr('data-id');
	var g = $('input[name="g"]').val();
    $url = '?r=global/getApproval&g='+g+'&id='+id;
    layer.open({
    	skin: 'layui-layer-molv'
    	,type: 2
    	,area: ['400px', '600px']
    	,title:'审批信息'
    	,content: $url
    	,btn: ['确定']   			
    });
});
</script>